package atguigu.callBackInt;

public class Result {

	private Boolean success;
    private String msg;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    
    public static Result SUCCESS() {
    	Result result = new Result();
    	result.setSuccess(true);
    	result.setMsg("成功");
    	return result;
    }
    
    public static Result FAIL() {
    	Result result = new Result();
    	result.setSuccess(false);
    	result.setMsg("失败");
    	return result;
    }
}
